<div class="o_c_title">
	{if $type eq 2}
	最近消费记录
	<a class="color_b h_l" href="?type=1">最近充值记录</a>
	{else}
	<a class="color_b h_r" href="?type=2">最近消费记录</a>
	最近充值记录
	{/if}
</div>
<table class="tlist" style="margin-top:20px;">
	<tr>
		<th>交易时间</th>
		<th>商家名称</th>
		<th>消费积分</th>
		<th>剩余积分</th>
	</tr>
	{foreach from=$data item=v}
	<tr>
		<td>{$v.cost_time}</td>
		<td><a class="color_b" href="/owner/pay/detail?id={$v.shop_id}">{$v.shop_name}</a></td>
		<td class="color_ry">{$v.cost_money_t}</td>
		<td class="color_green">{$v.cost_shop_after_money}</td>
	</tr>
	{/foreach}
</table>
<div class="index_more"><a href="/owner/pay/show?sel_type={$type}" class="color_b">查看更多记录&gt;</a></div>